﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using UMLTouch.Business.MVC;
using UMLTouch.Business;


namespace UMLTouch.UI.Main
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        
        IUMLTouchModel _model;
        IUMLTouchControler _controler;

    

        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);


            _model = new UMLTouchModel();
            _controler = new UMLTouchControler(_model);

            String diagramLookupPath = ConfigurationManager.AppSettings["DiagramsFolder"];


            _controler.LoadAvailableDiagrams(diagramLookupPath);


            MainWindow = new mainUI(_controler, _model);
            //Start s = new Start();
            MainWindow.Show();
            //s.Show();
        }

    }
}
